<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="css/result.css" />
<link rel="stylesheet" href="css/index.css" />
<link rel="stylesheet" href="PlugIns/layer/skin/default/layer.css" />

<script type="text/javascript" charset="UTF-8" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="js/main.js"></script>
<script type="text/javascript" src="PlugIns/layer/layer.js"></script>
<style>
.top_link_a {
	font-size: 15px;
	color: black;
}
</style>
</head>

<body>
	<div class="main_div">
		<div class="float_right" style="margin-top: 5px;">
			<ul>
				<li class="top_link_li"><a href="" class="top_link_a">考试</a></li>
				<li class="top_link_li"><a href="" class="top_link_a">面试题</a></li>
				<li class="top_link_li"><a href="" class="top_link_a">程序员进化</a></li>
				<li class="top_link_li"><a href="" class="top_link_a">招聘</a></li>
				<li class="top_link_li"><a href="" class="top_link_a">贴吧</a></li>
				<li class="top_link_li"><a href="" class="top_link_a">资源下载</a></li>
				<li class="top_link_li">
					<%--
						判断是否登录，如果登录者显示
					 --%> 
					 <c:if test="${not empty userInfo }">
						<a href="#" class="top_link_user_admin">${userInfo.nickname }</a>
					</c:if> 
					<c:if test="${empty userInfo }">
						<a href="#" class="top_lik_a_login">登录</a>
					</c:if>
				</li>
				<li class="clear_float"></li>
			</ul>
		</div>
		<div class="clear_float"></div>
	</div>
	<script type="text/javascript">
		$(function() {
			$(".top_lik_a_login").on("click", function() {
				layer.open({
					type : 1,
					area : [ '400px', '500px' ],
					title : '您好，欢迎登录BUG查询系统',
					shade : 0.6, //遮罩透明度
					content : '<div class="login_html"><form action="userInfo/userLogin" method="post"><div><div class="float_leftlogin_txt">帐号：</div><div class="float_left login_input"><input type="text" name="phone" value="13129530289" /></div><div class="clear_float"></div></div><div class="marg_top_20"><div class="float_left login_txt">密码：</div><div class="float_left login_input"><input type="text" name="pwd" value="123123" /></div><div class="clear_float"></div></div><input type="submit" value="登录" /></form></div>'
				});
			});
		});
	</script>
</body>

</html>